﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:liquid="clr-namespace:Liquid;assembly=Liquid.RichText"
	x:Class="SBPweb.Communication.Client.Controls.Xmpp.Conversations.ConversationView">

	<Grid x:Name="LayoutRoot" Background="Transparent">
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition Width="Auto" MinWidth="48" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" MinHeight="32" MaxHeight="100" />
		</Grid.RowDefinitions>
        <liquid:RichTextBox x:Name="rtbIncoming" Grid.Row="0" Grid.ColumnSpan="2" IsReadOnly="True" />
		<!--ScrollViewer Grid.Row="0" Grid.ColumnSpan="2">
			<StackPanel x:Name="spIncoming" Orientation="Vertical" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Auto" />
		</ScrollViewer-->

		<controls:GridSplitter Height="5" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Stretch"/>
		<TextBox x:Name="tbOutgoing" Grid.Row="2" Grid.Column="0" KeyUp="TextBox_KeyUp" />
		<Button x:Name="bSend" Grid.Row="2" Grid.Column="1" Content="Send" Click="Button_Click" />
	</Grid>
</UserControl>
